package model

import (
	"github.com/go-xorm/xorm"
	"global/structs"
)

type userAssetLogModel struct{}

var UserAssetLogModel = new(userAssetLogModel)

// 插入多条资金流向记录
func (userAssetLogModel) Inserts(sess *xorm.Session, logs []*structs.UserAssetLog) (bool, error) {
	rows, err := sess.Insert(logs)
	if err != nil {
		return false, err
	}
	return rows > 0, nil
}
